package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.KangZhenTu;
import com.css.fxfzypg.modules.baseData.queryParams.KangZhenTuQueryParams;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

public interface KangZhenTuRepository {
    //KangZhenTuVO updateElevation(ElevationVO elevationVO);
    KangZhenTu saveKangZhenTu(KangZhenTu kangZhenTu);
    Page<KangZhenTu> getAllKangZhenTuParams(KangZhenTuQueryParams queryParams);
    KangZhenTu getKangZhenTuById(String id);
    void deleteKangZhenTusById(List<String> ids, Timestamp timestamp);
    List<KangZhenTu> getAll();
    void importExcel(List<KangZhenTu> kangZhenTus);

    int getHouseTotalByLonAndLat(String lon, String lat,Boolean flag);

    int getByGeom(String geom, Boolean flag);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
